3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
The viewType parameter to the Q3SetCameraView function [link] is a camera view command that specifies how to change the current camera view. These commands set the viewer to a predefined camera view.
Q3SetCameraView and the associated camera view commands were introduced in version 1.1 of the 3D Viewer.
typedef enum TQ3ViewerCameraView {
kQ3ViewerCameraRestore,
kQ3ViewerCameraFit,
kQ3ViewerCameraFront,
kQ3ViewerCameraBack,
kQ3ViewerCameraLeft,
kQ3ViewerCameraRight,
kQ3ViewerCameraTop,
kQ3ViewerCameraBottom
} TQ3ViewerCameraView;
The six final camera view commands set the camera to predefined positions based on the front and top attributes in the model only if they are present in the model's data. Otherwise, the camera positions are calculated from the model's coordinate space.
Previous | QD3D Book | Overview | Chapter Contents | Next |